package com.zxk.util;

import com.zxk.constant.ParamConstants;
import com.zxk.service.impl.MapTaskImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 线程工具
 *
 * @author: 舟小亢
 * @date: 2023-08-12 22:38
 */
public class ThreadUtil {

    private static Logger LOG = LoggerFactory.getLogger(ThreadUtil.class);

    public static void sleep() throws Exception {
        sleep(ParamConstants.UNIFY_SLEEP_TIME);
    }

    public static void sleep1() throws Exception {
        sleep(1000L);
    }

    public static void sleep2() throws Exception {
        sleep(2000L);
    }

    public static void sleep3() throws Exception {
        sleep(3000L);
    }


    public static void sleep(long sleepMs) throws Exception {
        Thread.sleep(sleepMs);
    }
}
